<?php
require_once 'Zend/Form/Element/Multiselect.php';

/**
 * 
 * @author Michael Krotscheck
 */

class Core_Form_Element_Multiselect extends Zend_Form_Element_Multiselect
{
	/**
	 * Object initialization method.
	 */
	public function init()
	{
		parent::init();
		
		$this->addDecorator( 'ViewHelper' );
		$this->addDecorator( 'Description', array( 'escape' => false, 'placement' => Zend_Form_Decorator_Abstract::PREPEND ) );
		$this->addDecorator( 'Errors', array( 'placement' => Zend_Form_Decorator_Abstract::APPEND ) );
		$this->addDecorator( 'HtmlTag', array( 'tag' => 'dd' ) );
		$this->addDecorator( 'Label', array('requiredSuffix' => '<span class="red"> *</span>', 'tag' => 'dt', 'escape' => false ) );
	}
}